package com.demo.entity.from;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
public class DictionaryFrom implements Serializable {
    @ApiModelProperty(value = "字典编码")
    @NotNull(message = "字典编码不能为空")
    private Integer dictionaryCode;

    @ApiModelProperty(value = "字典名称")
    @NotBlank(message = "字典名称不能为空")
    private String enumerationName;

    @ApiModelProperty(value = "字典值")
    @NotBlank(message = "字典值不能为空")
    private String enumerationValue;

    @ApiModelProperty(value = "字典值类型 0字符1数字")
    private Integer enumerationType;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "上级字典编码")
    @NotNull(message = "上级字典编码不能为空")
    private Integer parentDictionaryCode;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID号")
    private Integer createdUserId;

    @ApiModelProperty(value = "删除时间")
    private Date deletedTime;

    @ApiModelProperty(value = "删除人ID号")
    private Integer deletedUserId;

    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;

    @ApiModelProperty(value = "更新人ID号")
    @NotNull(message = "更新人ID号不能为空")
    private Integer updatedUserId;
}
